public class Animal {
    private String name;
    protected int age;
    String color;
    public double height;

    public Animal(String name, int age, String color, double height) {
        this.name = name;
        this.age = age;
        this.color = color;
        this.height = height;
    }

    private String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    protected int getAge() {
        return age;
    }

    public void setAge(int age) {
        this.age = age;
    }

    String getColor() {
        return color;
    }

    public void setColor(String color) {
        this.color = color;
    }

    public double getHeight() {
        return height;
    }

    public void setHeight(double height) {
        this.height = height;
    }

    @Override
    public String toString() {
        return "Animal{" +
                "name='" + name + '\'' +
                ", age=" + age +
                ", color='" + color + '\'' +
                ", height=" + height +
                '}';
    }
}
